set t_Co=256
set nu
set si
set sc
set is
set cin
set ls=2
set ts=4
set sw=4
set sts=4
set mouse=a
color ron 
"make
set mp=g++\ -o\ %<\ %\ -Ddebug\ -Dlocal
map <F5> :call MAKE()<CR> i
imap <F5> <esc>:call MAKE()<CR> i
func MAKE()
	exec "w"
	exec "make"
	exec "cw"
endf
map @ :w<CR>
imap @ <esc>:w<CR>
map <F6> <esc>:!./%<<CR>
imap <F6> <esc>:!./%<<CR>
map <C-b> :cprevious<CR>i
map <C-n> :cnext<CR>i
imap <C-b> <esc>:cprevious<CR>i
imap <C-n> <esc>:cnext<CR>i
"移动
map <c-up> <c-y>
map <c-down> <c-e>
imap <c-up> <esc><c-y>a
imap <c-down> <esc><c-e>a
" cat
map <F12> :call Print()<CR>
imap <F12> <esc>:call Print()<CR>
func Print()
	exec "w"
	exec "!cat %"
endf
"gdb
map <F8> :call Gdg()<CR>
func Gdg()
	exec "w"
	exec "!g++ % -o %< -g -Ddebug -Dlocal && gdb %< -q"
endf
"run
"map <F5> :call Run()<CR>
"imap <F5> <esc>:call Run()<CR>
func Run()
	exec "w"
	exec "!g++ % -o %< && ./%<"	
endf
"git
map <F9> :call GIT()<CR>
imap <F9> <esc>:call GIT()<CR>
func GIT()
	exec "w"
	exec "!git add -A :/ && git commit -m "'save'""	
endf
map <C-F10> :!gedit % <CR>
imap <C-F10> <esc>:!gedit % <CR>i

